import Index from "../pages/admin/dashboard";
import Edit from "../pages/admin/products/Edit";
import List from "../pages/admin/products/List";
import Login from "../pages/Login";
import { Navigate} from 'react-router-dom';
import PageNotFound from "../pages/PageNotFound";

export const mainRoutes = [
    {
        path:'*',
        Element:<Navigate to="/404"/>
    },
    {
        path:'/login',
        Element:<Login />
    },
    {
        path:'/404',
        Element:<PageNotFound/>
    }
]

export const adminRoutes = [
    {
        path:'/admin/dashboard',
        Element:<Index/>
    },
    {
        path:'/admin/products',
        Element:<List/>
    },
    {
        path:'/admin/products/edit/:id',
        Element:<Edit/>
    }
]